#!/bin/bash
set -e

PROJECT_NAME=waf-report

IMAGE_TAG=$(TZ=Asia/Shanghai date +"%y%m%d-%H%M%S")
IMAGE=$PROJECT_NAME:$IMAGE_TAG

echo image: $IMAGE

#image
docker build -t $IMAGE .
docker save -o $PROJECT_NAME-$IMAGE_TAG.tar $IMAGE